package com.zd.application.entity;

import com.zd.core.dao.annotation.Column;
import com.zd.core.dao.annotation.Table;

@Table("t_user")
public class User {
	/**
	 * 用户名称
	 */
	@Column(primaryKey = true)
	private String username;
	/**
	 * 密码
	 */
	@Column(primaryKey = true)
	private String password;
	
	//@Column(identity = true)
	private Integer uid;
	/**
	 * 纬度
	 */
	private Double lat;
	/**
	 * 经度
	 */
	private Double lng;
	/**
	 * 状态：0:离线;1:在线;
	 */
	private int state;
	
	/**
	 * 是否启用
	 */
	@Column
	private boolean enabled;
	
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Integer getUid() {
		return uid;
	}
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	public Double getLat() {
		return lat;
	}
	public void setLat(Double lat) {
		this.lat = lat;
	}
	public Double getLng() {
		return lng;
	}
	public void setLng(Double lng) {
		this.lng = lng;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public boolean isEnabled() {
		return enabled;
	}
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}
	
}
